<template>
  <div id="HeadComp">
    <div class="headContainer">
      <div class="left">
        <div class="iconfont" style="color:#fff">&#xe624;</div>
      </div>
      <div class="middle">
        <span class="iconfont">&#xe632;</span>
        请输入查询内容/城市/美食/趣玩...
      </div>
      <router-link to="/city">
        <div class="right">
          <span style="color:#fff;">上海</span>
          <span class="iconfont" style="color:#fff">&#xe65d;</span>
        </div>
      </router-link>
    </div>
  </div>
</template>
   

<script>
export default {
  name: "HeadComp",
  components: {}
};
</script>

<style scoped lang="stylus" >
@import '~@styl';

.headContainer {
  width: 100%;
  height: 0.64rem;
  background: $navBgColor;
  color: $bgColor;
  line-height: 0.64rem;
  display: flex;
  font-size: 0.14rem;
  align-items: center;
  overflow: hidden;

  .left {
    width: 0.42rem;
    float: left;
    height: 0.64rem;
    line-height: 0.64rem;
    text-align: center;
  }

  .middle {
    flex: 1;
    height: 0.44rem;
    font-size: 0.14rem;
    background: #fff;
    color: #dedede;
    line-height: 0.44rem;
    border-radius: 0.1rem;
    padding: 0.5rem auto;

    span {
      margin-left: 0.1rem;
    }
  }

  .right {
    width: 0.68rem;
    folat: right;
    text-align: center;
  }
}
</style>